package com.jic.member.enums;

/**
 * @author zs
 * @date: 2020/4/8
 */
public enum GetTypeEnum {
    ORDER_HANDLESEL("1","下单赠送"),
    REGISTER_HANDLESEL("2","注册赠送"),
    EVALUATE_HANDLESEL("3","评价赠送"),
    PAY_HANDLESEL("4","充值赠送"),
    SHARE_HANDLESEL("5","分享赠送"),
    LIKE_HANDLESEL("6","点赞赠送"),
    SHOW_ORDER_HANDLESEL("7","晒单赠送"),
    COLLECT_HANDLESEL("8","收藏赠送"),
    RECALL_HANDLESEL("9","取消或售后订单退回"),
    ;
    private String code;


    private String message;

    GetTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static GetTypeEnum getByCode(Integer code) {
        GetTypeEnum[] values = GetTypeEnum.values();
        for (GetTypeEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
